package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-09-30
 */
@TableName("tb_goods_detailed")
public class GoodsDetailed extends Model<GoodsDetailed> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号,主键,自增,表唯一
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 主键,全局唯一
     */
	private String uuid;
    /**
     * 商品uuid
     */
	@TableField("goods_uuid")
	private String goodsUuid;
    /**
     * 商品属性
     */
	private String attributes;
    /**
     * 商品价格
     */
	private Double price;
    /**
     * 商品库存
     */
	private Integer stock;
    /**
     * 已售数量
     */
	@TableField("sold_quantity")
	private Integer soldQuantity;
    /**
     * 商品图片url
     */
	private String picture;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 创建者
     */
	private String creator;
    /**
     * 更新时间
     */
	private Date updatetime;
	private String sku;
    /**
     * 修改者
     */
	private String mender;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getGoodsUuid() {
		return goodsUuid;
	}

	public void setGoodsUuid(String goodsUuid) {
		this.goodsUuid = goodsUuid;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getSoldQuantity() {
		return soldQuantity;
	}

	public void setSoldQuantity(Integer soldQuantity) {
		this.soldQuantity = soldQuantity;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "GoodsDetailed{" +
			", id=" + id +
			", uuid=" + uuid +
			", goodsUuid=" + goodsUuid +
			", attributes=" + attributes +
			", price=" + price +
			", stock=" + stock +
			", soldQuantity=" + soldQuantity +
			", picture=" + picture +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", creator=" + creator +
			", updatetime=" + updatetime +
			", sku=" + sku +
			", mender=" + mender +
			"}";
	}
}
